/*
 * Copyright (c) 2016- 2020 qolome.com Inc. All Rights Reserved.
 * ProjectName: qolome-knowledge
 * FileName: IMessage.java
 * Author: jiangfeng@qolome.com
 * Date: 2020/3/12 下午3:42
 * LastModified: 2020/03/12 15:42:12
 */

package com.qolome.knowledge.design.pattern.bridge.demo.messgae;

import lombok.extern.slf4j.Slf4j;

/**
 * @author Qolome
 * @version V1.0
 * @Description 紧急消息
 * @date 2020年 03月12日 15:42:50
 */
@Slf4j
public class UrgentMessage extends AbstractMessage{

    public UrgentMessage(IMessage message) {
        super(message);
    }

    @Override
    void sendMessage(String message, String toUser){
      super.sendMessage(("加急  -> "+message), toUser);
    }
}
